package com.zone.module_api.test.di

import androidx.lifecycle.ViewModel
import com.zone.api.database.ObjectBox
import com.zone.module_api.test.repository.DataHttpRepository
import com.zone.module_api.test.viewmodel.TestActivityVM
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoMap

/**
 *Author: last
 *Time: 2020/5/2
 *Description: xxx
 */
@Module
class VMModule {

    @Provides
    @IntoMap
    @ViewModelKey(TestActivityVM::class)
    fun getTestActivityVM(repository: DataHttpRepository, objectBox: ObjectBox): ViewModel {
        return TestActivityVM(repository, objectBox)
    }

}